{include file="public/layout" /}
<style>
    .ncap-form-default dl.row {
        display: flex;
        flex-wrap: nowrap;
        align-items: center;
    }
</style>
<body class="bodystyle" style="overflow: auto;min-width:auto;">
<div id="toolTipLayer"></div>
<div id="append_parent"></div>
<div id="ajaxwaitid"></div>
<div class="page min-hg-c-i" style="min-width: auto;box-shadow:none;padding-bottom: 0px;">
    <form class="form-horizontal" id="postForm">
        <div class="ncap-form-default">
            <dl class="row">
                <dt class="tit"> <label for="level_value"><em>*</em>变量名称</label> </dt>
                <dd class="opt">
                    <input type="text" name="level_value" id="level_value" class="input-txt" onkeyup="this.value=this.value.replace(/[^\d]/g,'');" autocomplete="off">
                    <p class="notic"></p>
                </dd>
            </dl>
            <dl class="row">
                <dt class="tit"> <label for="level_name"><em>*</em>变量类型</label> </dt>
                <dd class="opt">
                    <select name="attr_input_type[]" class="input_showhide none" onchange="change_attr_input_type(this);" style="display: inline-block;">
                        <option value="0" selected="">单行文本</option>
                        <option value="2">多行文本</option>
                        <option value="3">上传图片</option>
                        <!-- <option value="5">多媒体类型</option> -->
                        <!-- <option value="4" >开关类型</option> -->
                    </select>
                </dd>
            </dl>
            <dl class="row">
                <dt class="tit"> <label for="level_name"><em>*</em>变量值</label> </dt>
                <dd class="opt">
                    <div class="dan-pane">
                        <div class="images_upload images_upload_html" style="display:inline-block;">
                            <a href="javascript:void(0);" onclick="GetUploadify(1, '', 'allimg', 'img_call_back_pc');" class="img-upload no-float" title="点击上传">
                                <div class="y-line" id="web_logo_local_y_line" {notempty name="$config.web_logo_local"} style="display: none;" {/notempty}></div>
                                <div class="x-line" id="web_logo_local_x_line" {notempty name="$config.web_logo_local"} style="display: none;" {/notempty}></div>
                                <img src="{$config.web_logo_local}" id="web_logo_local_src" class="pic_con" {empty name="$config.web_logo_local"} style="display: none;" {/empty}>
                            </a>
                            <a href="javascript:void(0)" onclick="clear_pic('web_logo_local', 'web_logo_local_src', 'web_logo_local_y_line', 'web_logo_local_x_line')" class="delect" title="删除"></a>
                            <input type="hidden" id="web_logo_local" name="web_logo_local" value="{$config.web_logo_local|default=''}">
                        </div>
                        <script type="text/javascript">
                            function img_call_back_pc(fileurl_tmp) {
                                $('#web_logo_local_y_line, #web_logo_local_x_line').hide();
                                $('#web_logo_local_src').show().attr('src', fileurl_tmp);
                                $('#web_logo_local').val(fileurl_tmp);
                            }
                            function clear_pic(id_0, id_1, id_2, id_3) {
                                $('#' + id_0).val('');
                                $('#' + id_1).hide().attr('src', '');
                                $('#' + id_2 + ', #' + id_3).show();
                            }
                        </script>
                    </div>
                    
                </dd>
            </dl>
            
            

            <div class="users-modal-footer">
                <div>
                    <button type="button" class="default-long users-btn" onclick="cancel();">
                        <span>取消</span>
                    </button>
                    <button type="button" class="primary-long users-btn" onclick="confirm();">
                        <span>确定</span>
                    </button>
                </div>
            </div>
        </div>
    </form>
</div>
<script type="text/javascript" src="__SKIN__/js/users_level.js?v={$version}"></script>
{include file="public/footer" /}